package com.siyuanren.gcocp.service;

import com.siyuanren.gcocp.dto.HomeworkQuestionDTO;
import com.siyuanren.gcocp.vo.HomeworkAnswerVO;
import com.siyuanren.gcocp.vo.HomeworkCompleteVo;
import com.siyuanren.gcocp.vo.QueryChapterHomeworkVO;

import java.util.List;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.service
 * Date         2018/4/17
 * Time         15:09
 * Description 课堂作业service
 */
public interface HomeworkService {
    /**
     * 返回章节课堂作业
     * @param queryChapterHomeworkVO
     * @return
     */
    public List<HomeworkQuestionDTO> getChapterHomework(QueryChapterHomeworkVO queryChapterHomeworkVO) throws Exception;

    /**
     * 用户课堂作业答案
     */
    List<HomeworkQuestionDTO> saveAnswerHomework(HomeworkCompleteVo vo, List<HomeworkAnswerVO> list) throws Exception;


    /**
     * 完成家庭作业
     */
    void completeHomework(HomeworkCompleteVo vo);

}
